import {
    LayerPersistData,
    PixelFile,
} from "../../../components/canvas/Data/CanvasFile";
import { randomUUID } from "../createUUID";

export class ProPixelFile implements PixelFile {
    id: string = randomUUID();
    name: string = "未命名文件";
    user: string = "unknown";
    height: number = 64;
    width: number = 64;
    version: string = "1.0.0";
    createdAt: number = new Date().getTime();
    updatedAt: number = new Date().getTime();
    layers: LayerPersistData[] = [];
    constructor(data?: ProPixelFile) {
        Object.assign(this, data);
    }
}
